﻿using System.Collections.Generic;
using System.Linq;
using ZBJF.Warranty.Model;
using ZBJF.Warranty.Model.ViewModel.BaseQueryModel;

namespace ZBJF.Warranty.IBLL
{
    public partial interface ISellerEmployeeRoleMappingService
    {
        SellerEmployeeRoleMapping LoadByID(long id);
        SellerEmployeeRoleMapping Load(long sellerEmployeeID, long sellerEmployeeRoleID);
        /// <summary>
        /// 添加用户角色
        /// </summary>
        /// <param name="sellerEmployeeID"></param>
        /// <param name="sellerEmployeeRoleID"></param>
        /// <returns></returns>
        bool AddSellerEmployeeRoleMappings(long sellerEmployeeID, List<long> sellerEmployeeRoleID);
        /// <summary>
        /// 删除用户
        /// </summary>
        /// <param name="sellerEmployeeID"></param>
        /// <returns></returns>
        bool DeleteSellerEmployeeRoleMappings(long sellerEmployeeID);
        /// <summary>
        /// 根据员工iD 获取员工角色ID集合
        /// </summary>
        /// <param name="employeeID"></param>
        /// <returns></returns>
        List<long> GetEmployeeRoleIDs(long employeeID);
        IQueryable<SellerEmployeeRoleMapping> LoadByEmployeeID(long employeeID);
        IQueryable<SellerEmployeeRoleMapping> GetPagingList(BaseQueryParams model, out int total);
    }
}